package com.kifas.model.xml;

import java.io.Serializable;
import java.util.Set;
import javax.xml.bind.annotation.XmlElement;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class SalesModel implements Serializable {

	private static final long serialVersionUID = -8985265060006222984L;

	private Long idSales;
	private String nama;
	private String type;
	private String notelp;
	private String alamat;
	private String email;
	private String createdBy;

	@XmlElement(name = "customerModel")
	private Set<CustomerModel> customerModels;

	public SalesModel() {
	}

	public SalesModel(Long idSales, String nama, String type, String createdBy) {
		this.idSales = idSales;
		this.nama = nama;
		this.type = type;
		this.createdBy = createdBy;
	}
	public SalesModel(Long idSales, String nama, String type, String notelp, String alamat, String email, Set<CustomerModel> customerModels, String createdBy) {
		this.idSales = idSales;
		this.nama = nama;
		this.type = type;
                this.notelp = notelp;
                this.alamat= alamat;
                this.email = email;
		this.notelp = notelp;
		this.alamat = alamat;
		this.email = email;
		this.customerModels = customerModels;
		this.createdBy = createdBy;
	}

	public Set<CustomerModel> getCustomerModels() {
		return customerModels;
	}
        
	public void setCustomerModels(Set<CustomerModel> customerModels) {
		this.customerModels = customerModels;
	}

	public String getAlamat() {
		return alamat;
	}

	public void setAlamat(String alamat) {
		this.alamat = alamat;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNotelp() {
		return notelp;
	}

	public void setNotelp(String notelp) {
		this.notelp = notelp;
	}

	public Long getIdSales() {
		return idSales;
	}

	public void setIdSales(Long idSales) {
		this.idSales = idSales;
	}

	public String getNama() {
		return nama;
	}

	public void setNama(String nama) {
		this.nama = nama;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

}
